package com.xh.cdp.sys.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.xh.cdp.common.BaseDao;
import com.xh.cdp.sys.dao.SysLogDao;
import com.xh.cdp.sys.entity.SysLogEntity;

@Repository
public class SysLogDaoImpl extends BaseDao<SysLogEntity, Integer> implements
		SysLogDao {

	@Override
	public List<SysLogEntity> listLogs() {
		return listEntityByHql("SELECT new  SysLogEntity(s.id, s.userCode, s.ip, s.operation) FROM SysLogEntity s ");
	}

}
